const mongoose = require('mongoose');

const ProductSchema = mongoose.Schema({
    comment:{
	    type: String,
	    required: false,
    },
    userId:{
        type: String,
        required: false, //has to be true but for testing its false
    },
    date:{
        type: Date,
        default: Date.now
    },
    verified: Boolean,
},
);

const Product = mongoose.model("Product", ProductSchema);
module.exports = Product;
